home *** CD-ROM | disk | FTP | other *** search
- <html>
-
- <head>
-
- <title>Doorway</title>
-
- </head>
-
- <script language="JavaScript1.2">
-
- <!---//
-
- //by specifying 'JavaScript1.2' as the scripting
-
- //language, only NS 4.0 and higher "sees" this script.
-
- //the routeMe() function simply changes the current
-
- //window's location to Netscape's page.
-
- function routeMe() {
-
- self.location="http://www.netscape.com/";
-
- return false;
-
- //some people have asked why I use "return false"
-
- //on this script. Simple... the onClick event is
-
- //setting netscape up to link to another page. By
-
- //returning "false", you're telling the browser not
-
- //to follow that link.
-
- }
-
- //--->
-
- </script>
-
- <script language="VBScript">
-
- <!---//
-
- //by specifying 'VBScript' as the scripting language for
-
- //this block, only MSIE 3.0 and higher "sees" this script.
-
- //again, the routeMe() sub changes the current
-
- //window's location to Microsoft's page.
-
- Sub routeMe()
-
- self.location="http://www.microsoft.com/"
-
- End Sub
-
- //--->
-
- </script>
-
- <body bgcolor="#ffffff">
-
- <center>
-
- <form>
-
- <input type="button" onClick="routeMe()" value="Go Home!">
-
- </form>
-
- </center>
-
- </body>
-
- </html>
-
-